<?php
defined('_JEXEC') or die('Restricted access');
?>
<div id="poll_title">
    <?php echo $this->escape($this->poll->title); ?>
</div>
<?php
foreach($this->poll->options as $option){
?>
<div id="poll_bar_title">
    <?php echo $option->title; ?>
</div>
<div id="poll_bar_detail" style="width: 110px;">
    <strong><?php echo $this->escape($option->votes) . '&nbsp;' . JText::_('LABEL_VOTES'); ?></strong>&nbsp;
    (<?php echo $this->escape($option->percent); ?>%)
</div>
<div id="poll_bar">
    <div id="<?php echo $option->class; ?>" style="height:<?php echo $option->barheight; ?>px;width:<?php echo $option->percent; ?>%"></div>
</div>
<div id="poll_bar_break"></div>
<?php
}
?>